package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.UserManagement;

import java.util.List;

public interface UserManagementService {
    //新增用户
    public void add(UserManagement userManagement, Integer[] roleIds,String staus,String sex);
    //用户分页查询
    public PageResult pageQuery(QueryPageBean queryPageBean);

    //用户编辑
    public void edit(UserManagement userManagement, Integer[] usernameIds,String staus,String sex);


    //根据id查询用户
    public UserManagement findById(Integer id);
    //根据用户id查询用户包含的多个角色的id
    public List<Integer> findRoleIdsByUserManagementId(Integer id);
    //删除用户
    public void delete(Integer id);
    //查询所有的用户
    public List<UserManagement> findAll();
}
